Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-889

linkRoute patterns beginning with #/string match substrings after the /

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.1
    • Container
    • None

    Description

      linkRoutes with a pattern of #/policy match substrings of the word policy

      • 1. setup a router
        router { mode: standalone id: A }

        listener

        { host: 0.0.0.0 port: 20000 role: normal saslMechanisms: ANONYMOUS }

        connector

        { name: policy-connector role: route-container host: 0.0.0.0 port: 8888 saslMechanisms: ANONYMOUS }

        linkRoute

        { pattern: #/policy dir: in connection: policy-connector }
      • 2. start an acceptor on that host:port
        qpid-proton/examples/python/server_direct.py
      • 3. verify linkRoute is established
        qdstat -b 0.0.0.0:20000 --linkroutes
        Link Routes
        address dir distrib status
        =====================================
        #/policy in linkBalanced active
      • 4. send some messages through the router

      addresses that should match
      qpid-proton/examples/python/simple_send -a 0.0.0.0:20000/bob.com/policy -m 1
      -> message received at server_direct.py
      qpid-proton/examples/python/simple_send -a 0.0.0.0:20000/ken-is-great/policy -m 1
      -> message received at server_direct.py
      qpid-proton/examples/python/simple_send -a 0.0.0.0:20000/policy -m 1
      -> message received at server_direct.py

      addresses that should not match
      qpid-proton/examples/python/simple_send -a 0.0.0.0:20000/bob.com/a -m 1
      -> message NOT sent - this is the correct behavior
      qpid-proton/examples/python/simple_send -a 0.0.0.0:20000/bob.com/p -m 1
      -> message received at server_direct.py - this is a bug
      qpid-proton/examples/python/simple_send -a 0.0.0.0:20000/poli -m 1
      -> message received at server_direct.py - this is a bug

      Attachments

        Issue Links

          Activity

            People

              kgiusti Ken Giusti
              eallen Ernest Allen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: